package com.shunda.ysdgj.model.entity.goods;

import com.baomidou.mybatisplus.annotation.TableName;
import com.shunda.ysdgj.model.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@TableName("ysdgj_goods_spu")
@Schema(description = "产品SPU")
public class GoodsSpu extends BaseEntity {
    @Schema(description = "管理员ID")
    private Long sysUserId;

    @Schema(description = "店铺ID")
    private Long shopId;

    @Schema(description = "产品标题")
    private String spuTitle;

    @Schema(description = "产品详情图片Json字符串")
    private String spuImages;

    @Schema(description = "产品分类ID")
    private Long spuCategoryId;

    @Schema(description = "产品品牌ID")
    private Long spuBrandId;

    @Schema(description = "产品可搜索规格品类ID")
    private Long spuSpecCategoryId;

    @Schema(description = "产品不可搜索规格品类ID")
    private Long spuSpecNoSearchCategoryId;

    @Schema(description = "上下架 1上架 0下架")
    private Integer spuSaleable;

    @Schema(description = "是否有效 1有效 0无效 设为无效的商品只能进行删除操作")
    private Integer spuValid;
}
